package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.comment.domain.WendaComment;
import cn.wolfcode.luowowo.comment.query.WendaCommentQuery;
import cn.wolfcode.luowowo.member.domain.UserInfo;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IWendaCommentService {
    /**
     * 保存或者添加
     * @param wendaComment
     */
    void save(WendaComment wendaComment);

    /**
     * 分页查询
     * @return
     */
    Page<WendaComment> query(WendaCommentQuery qo);


    WendaComment get(Long answerId);

    WendaComment commentAdd(String id, String content, UserInfo userInfo);

    WendaComment replyComment(String hdId, String id, String content, UserInfo userInfo);

    List<WendaComment> selectAll();

    List<WendaComment> selectListByWendaId(Long id);

    List<WendaComment> selectForTop10();

    Long selectCountByQuestionId(Long questionId);
}
